<?php
/**
 * Formulaire de recherche d'un contact
 * @author Etienne AUDOUIN <etienne.audouin@ingesup.com>
 * @author Adrien MARIANELLI <adrien.marianelli@ingesup.com>
 * @version 1.0
 * @package view_contact_search
 */
$formAttributes = array ('id' => 'form_readContact');

if (!isset($id))
    $id=0;

echo form_fieldset('Search contact');
echo form_open('webnews/searchContact', $formAttributes);
echo '<table id="table_searchContact">';
//search
$contactSearchAttributes = array(
    'name'        => 'contactSearch',
    'id'          => 'input_contactSearch');
echo '<tr>';
echo '<th>Search contact by name, first name or mail</th>';
echo '<td>'.form_input($contactSearchAttributes).'</td>';
echo '</tr>';
echo '</table>';

echo form_submit(null, 'Search');
echo form_close();
echo form_fieldset_close();
?>